package controller;

import entity.Account;
import entity.User;
import service.impl.UserServiceImpl;

public class UserController {
	
	private UserServiceImpl usi = new UserServiceImpl();
	
	public boolean login(Account account) {
		return usi.login(account);
	}

	public boolean registered(User user, String password) {
		return usi.registered(user, password);
	}

	public boolean deposit(int money) {
		return usi.deposit(money);
	}

	public boolean withdrawals(int money) {
		return usi.withdrawals(money);
	}

	public boolean transfer(int money, String accountNumber) {
		return usi.transfer(money, accountNumber);
	}

	public User selectInformation() {
		return usi.selectInformation();
	}

}
